<div class="bjui-pageContent">
    <form action="/admin/userbizrights/save" id="j_custom_form" data-toggle="validate" data-alertmsg="false" reloadNavtab="true">
        <input type="hidden" name="userId" value="${(user.id)!}" />
        <div class="pageFormContent" data-layout-h="0">
            <table class="table table-condensed table-hover" width="100%">
                <tbody>
                <tr>
                    <td>
                        <label for="userName" class="control-label x85">用户名：</label>
                        ${(user.userName)!}
                        <#--<input type="text" name="userName" id="userName" value="${(user.userName)!}" data-rule="required" >-->
                    </td>
                    <td>
                        <label for="realName" class="control-label x85">真实姓名：</label>
                        ${(user.realName)!}
                        <#--<input type="text" name="realName" id="realName" value="${(user.realName)!}" data-rule="required" >-->
                    </td>
                </tr>
                </tbody>
            </table>
            <div style="height:20%; overflow:hidden;">
                <fieldset style="height:100%;">
                    <legend>业务单元</legend>
                    <div style="height:94%; overflow:hidden;">
                    <#list bizUnits as bizUnit>
                        <#if userBizUnitMap??&&userBizUnitMap[bizUnit.unitName]??>
                            <#assign checked =true/>
                        <#else>
                            <#assign checked =false/>
                        </#if>
                        <input type="checkbox" name="bizUnitArray"  value="${(bizUnit.id)!}#${(bizUnit.unitName)!}#${(bizUnit.note)!}" data-toggle="icheck" data-label="${(bizUnit.note)!}" <#if checked>checked</#if>>
                    </#list>
                    </div>
                </fieldset>
            </div>
            <div style="height:20%; overflow:hidden;">
                <fieldset style="height:100%;">
                    <legend>业务类型</legend>
                    <div  style="height:94%; overflow:hidden;">
                    <#list bizTypes as bizType>
                        <#if userBizTypeMap??&&userBizTypeMap[bizType.typeName]??>
                            <#assign checked =true/>
                        <#else>
                            <#assign checked =false/>
                        </#if>
                        <input type="checkbox" name="bizTypeArray"  value="${(bizType.id)!}#${(bizType.typeName)!}#${(bizType.note)!}" data-toggle="icheck" data-label="${(bizType.note)!}" <#if checked>checked</#if>>
                    </#list>
                    </div>
                </fieldset>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageFooter" >
    <ul>
        <li><button type="button" class="btn btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn btn-success" data-icon="save">保存</button></li>
    </ul>
</div>